package com.sm.imlibrary.roondao.dao;

import androidx.room.Dao;
import androidx.room.Query;

import com.sm.imlibrary.roondao.entity.DbUserInfo;

import java.util.List;

/**
 * created by zhud on 2019/9/30
 */
@Dao
public interface UserInfoDao extends BaseDao<DbUserInfo, Long> {
    @Query("SELECT * FROM t_user_info")
    List<DbUserInfo> loadAllUsers();

    @Query("SELECT * FROM t_user_info t WHERE t.id=:id")
    DbUserInfo selectById(Long id);
}
